package ifswitch;

import java.util.Scanner;

public class test3 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的成绩");
        int jingli =sc.nextInt();
        if  (jingli >=0 && jingli <=100) {
            if (jingli >= 95 && jingli <= 100) {
                System.out.println("奖励一辆自行车");
            } else if (jingli >= 90 && jingli < 94) {
                System.out.println("去游乐场");
            } else if (jingli >= 80 && jingli < 89) {
                System.out.println("奖励一个变形金刚");
            } else if (jingli > 0 && jingli < 80) {
                System.out.println("一顿打");
            }
        }
        else {
            System.out.println("成绩无效");
        }
    }
}
